package ch.unisi.inf.java.project.riskbami.model;



/**
 * The test class CardTest.
 *
 * @author minellir@lu.unisi.ch
 * @author babazadm@lu.unisi.ch
 */
public class CardTest extends junit.framework.TestCase
{
    

	public void testGetCountry()
	{
		Country country1 = new Country("Swiss");
		Country country2 = new Country("Italy");
		Card card1 = new Card(0, CardType.INFANTRY, country1);
		Card card2 = new Card(1, CardType.JOLLY, country2);
		assertEquals(country1, card1.getCountry());
		assertEquals(country2, card2.getCountry());
	}
	
	public void testGetType()
	{
		Country country1 = new Country("Swiss");
		Country country2 = new Country("Italy");
		Card card1 = new Card(0, CardType.INFANTRY, country1);
		Card card2 = new Card(1, CardType.JOLLY, country2);
		assertEquals(CardType.INFANTRY, card1.getType());
		assertEquals(CardType.JOLLY, card2.getType());
	}
	
	
}

